#ifndef UTILS_H
#define UTILS_H

#include <QObject>
#include <QStandardPaths>
#include <QDir>
#include <QFileInfoList>
#include <QFileInfo>
#include <QFile>
#include <QTextStream>

#define ESCAPE "\\"
#define DOUBLE_ESCAPE ESCAPE ESCAPE

class Utils : public QObject
{
    Q_OBJECT
public:
    explicit Utils(QObject *parent = 0);

    static QString escape(QString str, QString separator, QString delim);
    static QString unescape(QString str, QString separator, QString delim);
    static int findSeparator(QString str, QString sep, QString escape, int from);
    static QStringList mySplit(QString str, QString sep, QString escape);

    static QString StringMD5(QString str);
    static QString FileMD5(QString fname);

signals:

public slots:

};

#endif // UTILS_H
